package com.timk.goserver.server.model;

import java.util.Date;

/**
 * RatingEntry is used to save rating history
 * @author TKington
 *
 */
public class RatingEntry {
	private int entryId;
	private Date date;
	private int rating;
	
	RatingEntry() { /* */ }
	
	/**
	 * Creates a RatingEntry
	 * @param rating the new rating
	 */
	public RatingEntry(int rating) {
		this.rating = rating;
		date = new Date();
	}
	
	/**
	 * Returns the date
	 * @return the date
	 */
	public Date getDate() {
		return date;
	}
	
	/**
	 * Sets the date
	 * @param date
	 */
	public void setDate(Date date) {
		this.date = date;
	}
	
	/**
	 * Returns the rating
	 * @return the rating
	 */
	public int getRating() {
		return rating;
	}
	
	/**
	 * Sets the rating
	 * @param rating
	 */
	public void setRating(int rating) {
		this.rating = rating;
	}
	
	int getEntryId() {
		return entryId;
	}
	
	void setEntryId(int entryId) {
		this.entryId = entryId;
	}
}
